#include <string>
#include "recursos.h"

using namespace std;

 
char * stringachar(string m)
{
 char * a;
 a = new char[m.length()+1];
 for(unsigned int i = 0; i < m.length();i++)
  a[i] = m[i];
 a[m.length()] = '\000';
 return a;
}

char * intachar(int m)
{
 char * a;
 char b[12];
 a = new char[30];
 if( ! m )
 {
  a[0] = '0';
  a[1] = '\000';
  return a;
 }
 int i = 0;
 while(m)
 {
  b[i] = m % 10 + 48;
  m = m / 10;
  i++;
 }
 for(int j = 0;j < i;j++)
  a[j] = b[i-j-1];
 
 a[i] = '\000';
 
 return a;
}
